<table class="lb_block" cellpadding="2" cellspacing="1">
	<tr>
		<td class="lb_block_title">{$smarty.const.LANG_GROUP_PANEL}</td>
	</tr>
	<tr>
		<td class="lb_block_body">
			<br />

			{if $action == "add_group"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_GROUP_NAME}: </td><td><input type="text" name="group" /></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>
			{elseif $action == "edit_group"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_GROUP_NAME}: </td><td><select name="group">
							{foreach key=key item=item from=$groups}
								<option value="{$key}">{$item}</option>
							{/foreach}
							</select></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_NEW_GROUP}:</td><td><input type="text" name="new_name" /></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>				
			{elseif $action == "remove_group"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_GROUP_NAME}: </td><td><select name="group">
							{foreach key=key item=item from=$groups}
								<option value="{$key}">{$item}</option>
							{/foreach}
							</select></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>
			{else}
				<ul><a href="{$webdir}admin.php?task=group&action=add_group">{$smarty.const.LANG_GROUP_ADD}</a></ul>
				<ul><a href="{$webdir}admin.php?task=group&action=edit_group">{$smarty.const.LANG_GROUP_EDIT}</a></ul>
				<ul><a href="{$webdir}admin.php?task=group&action=remove_group">{$smarty.const.LANG_GROUP_REMOVE}</a></ul>
			{/if}			
		
			<br />
		</td>
	</tr>
</table>